package com.atguigu.admin.service.impl;

import com.atguigu.admin.bean.Student;
import com.atguigu.admin.mapper.StudentMapper;
import com.atguigu.admin.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Chen Yaqi
 * @version 1.0
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public void saveStudent(String name, Integer age, String gender, String phone) {
        studentMapper.saveStudent(name,age,gender,phone);
    }
}
